package com.houxiurong.service;

import com.houxiurong.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by houxiurong on 2017/6/29.
 */
public interface UserService {

    List<User> findAll();

    User login(User user);

    User findUserByName(String name);

    Page<User> findByNameNot(String name, Pageable pageable);
}
